from django.urls import include, path
from rest_framework import routers
from rest_framework.schemas import get_schema_view

from . import views

router = routers.DefaultRouter()
router.register(r"users", views.UserViewSet)
router.register(r"it_lab", views.It_labViewSet)
router.register(r"pl_uslp", views.Pl_uslpViewSet)

urlpatterns = [
    path("", include(router.urls)),
    path(
        "openapi",
        get_schema_view(title="Your Project", description="API for all things …", version="1.0.0"),
        name="openapi-schema",
    ),
]
